<?php

namespace app\common\validate\xiluhouse\market;

use think\Validate;

class MarketHouse extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'village_id|所属小区'      => 'require|gt:0',
        'house_no|房号'           => 'require',
        'user_id|发布用户'         => 'require|gt:0',
        'total_price|总价格'       => 'gt:0',
        'price|价格'              => 'gt:0',
        'image|封面图'             => 'require',
        'images|图片'             => 'require',
        'space|面积'              => 'require',
        'face|朝向'               => 'require',
        //'total_floor|总层高'       => 'require|gt:0',
        'purpose_id|房源用途'      => 'require',
        'decoration_id|装修'   => 'require',
        'content|详情描述'         => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
